home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2937 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: s02.pavilion.co.uk!usenet
  2. From: AJRobb@pavilion.co.uk (Andy J Robb)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: calling a C++ from C
  5. Date: Thu, 25 Jan 1996 02:02:53 GMT
  6. Organization: Pavilion Internet plc
  7. Message-ID: <4e6oau$fgm@s02.pavilion.co.uk>
  8. References: <4ds5ch$59r@sand.cis.ufl.edu>
  9. NNTP-Posting-Host: poolb14.pavilion.co.uk
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. mkandil@cis.ufl.edu (Mokhtar Kandil) wrote:
  13.  
  14.  
  15. >hey guys
  16. >i know this question has probably been asked a lot, but im stuck on it and
  17. >i would appreciate any help :
  18.  
  19. >How to call a C++ function from C code ie (equivalent of the C++ "extern C"
  20. >in C)
  21.  
  22. The linkable name of a C++ function is generally unknown to C (or
  23. other C++ compilers).  However, you can declare a C++ function as a C
  24. function and access that.  It needs to be placed in the C class.  For
  25. examples, look in the standard header files. 
  26. -----BEGIN PGP PUBLIC KEY BLOCK-----
  27. Version: 2.6.2i
  28.  
  29. mQCNAy/MpRwAAAEEAOt6uBYqT8yv9EmqNhK8m6v+bYi8QjnGW3Bo6iU1gsMj5pa6
  30. MHgq99c8deADbE3cbJ6uZS9v5pZE3WCf6HCQjlB5iULA5RZzMdAumd/WUzuL9UT3
  31. B44D9EqqFIL79FlYb56v4oKFqFp1/J2bIpYUwnUvabGzGjdLrpPl4P16x9sNAAUR
  32. tCNBbmR5IEogUm9iYiA8QUpSb2JiQHBhdmlsaW9uLmNvLnVrPrQhQW5keSBSb2Ji
  33. IDxBSlJvYmJAcGF2aWxpb24uY28udWs+
  34. =/wVD
  35. -----END PGP PUBLIC KEY BLOCK-----
  36.  
  37.